package cn.xorange.commons.system.mapper.platform;

import cn.xorange.commons.data.core.mapper.MBaseMapper;
import cn.xorange.commons.system.entity.platform.SysProductSpu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author : yangjian
 * date : 2024/9/13
 * description :
 */
@Mapper
public interface SysProductSpuMapper extends MBaseMapper<SysProductSpu> {

    @Select("select count(1) from sys_product_spu where product_id = #{productId} and status = '0'")
    int selectSpuByDefaultProductId(@Param("productId") Long productId);

}
